package cn.com.joycode.nimble.trans;

import javax.persistence.AttributeConverter;

public class VerifyStatusConverter implements AttributeConverter<VerifyStatus, String> {

    @Override
    public String convertToDatabaseColumn(VerifyStatus attribute) {
        return attribute.name();
    }

    @Override
    public VerifyStatus convertToEntityAttribute(String dbData) {
        return VerifyStatus.valueOf(dbData);
    }

}
